package com.qf.conf;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//这里一定不能够加configuration,否则会失败
//@Configuration
public class LoadbalanceRuleConf {

    @Bean
    public IRule myRule(){
        return new RandomRule();
    }
}
